<?php

/* @var $this yii\web\View */
/* @var $form yii\bootstrap\ActiveForm */
/* @var $model \common\models\LoginForm */

use yii\helpers\Html;
use yii\helpers\Url;
use yii\bootstrap\ActiveForm;

$this->title = '欢迎登录曼姐画站';
$this->params['breadcrumbs'][] = $this->title;
?>
<button id="findpass">Who's the cm?</button>
<style type="text/css">
    .help-block{
        display:none;
    }
    .help-block-error{
        display:none;
    }
</style>
<div class="form">
    <div class="forceColor"></div>
    <div class="topbar">
        <div class="spanColor"></div>
        <?php $form = ActiveForm::begin(['id' => 'login-form']); ?>

        <?= $form->field($model, 'username', [
            'inputOptions' => [
                'placeholder' => '请输入用户名',
                'class' => 'input',
                'id' => 'username',
            ],
        ])->textInput(['autofocus' => true]) ?>

        <?= $form->field($model, 'password', [
            'inputOptions' => [
                'placeholder' => '请输入密码',
                'class' => 'input',
                'id' => 'password',
            ]
        ])->passwordInput() ?>

        <?//= $form->field($model, 'rememberMe')->checkbox() ?>
        <!-- <input type="hidden" class="loginurl" id="loginurl" value="<?php echo Url::to(['site/login']) ?>"> -->
        <?//= Html::submitButton('Login', ['class' => 'submit', 'id' => 'submit', 'name' => 'login-button']) ?>
        <?= Html::submitButton('Login', ['class' => 'submit btn btn-primary', 'name' => 'login-button']) ?>

        <?php ActiveForm::end(); ?>
    </div>
</div>
